home *** CD-ROM | disk | FTP | other *** search
/ AOL File Library: 2,801 to 2,900 / aol-file-protocol-4400-2801-to-2900.zip / AOLDLs / C++ Files Library / Color Picker MDEF / info.txt < prev   
Text File  |  2014-09-28  |  1KB  |  47 lines

  1. Subject:  Color Picker MDEF
  2. Author:  Jordan Zimmerman
  3. Uploaded By:  ALTURA
  4. Date:  11/25/1995
  5.  
  6. File:  Color MDEF.sit (19299 bytes) 
  7. Estimated Download Time (60658 baud):  < 1 minute
  8. Download Count:  289
  9.  
  10.  
  11. Keywords:  MENU DEFINITION PROCEDURE DEFPROC
  12.  
  13.  
  14. KEYWORDS:  MENU DEFINITION PROCEDURE DEFPROC
  15.  
  16. Color MDEF
  17. (Color Picker MDEF)
  18. By Jordan Zimmerman
  19. (c)1995 by Jordan Zimmerman
  20.  
  21. This code implements a Macintosh MDEF for selecting a color. The user is presented with a matrix of color chips to select from.
  22.  
  23. Each menu item represents a color to be displayed. It should be a 12 byte string of the form:
  24.   RRRRGGGGBBBB
  25. where RRRR, GGGG, and BBBB are hex numbers (as ASCII text).
  26.  
  27. So, the color black would be:
  28.   "\pFFFFFFFFFFFF"
  29.   
  30. the color green would be:
  31.   "\p0000FFFF0000"
  32.   
  33. The current color is, by definition, the menu item that has a mark. So, you should only set a mark (any value) for one item at time.
  34.  
  35. Reference the sample app for an example usage.
  36.  
  37. Unlimited use is hereby granted without restriction.  However, the author would appreciate credit if possible.
  38.  
  39. Comments, questions, bugs, etc. should be sent to me:
  40.     jordanz@altura.com
  41.  
  42. ------------------------------------------------------------
  43. Macintosh Developers Forum Libraries         Go Keyword: MDV
  44.  
  45. This file has been checked for viruses with Disinfectant 3.6
  46.  
  47.